<?php session_start(); ?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
       <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-15" />
       <meta http-equiv="Content-Style-Type" content="text/css" />
       <title>Share'In</title>
	   <link rel="icon" href="images/favicon.ico" />
       <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="main css" charset="utf-8" />
       <link href="css/jqtransform.css" rel="stylesheet" type="text/css" media="screen" charset="utf-8" />
       <link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen" />
	   <link rel="stylesheet" type="text/css" href="css/calendar.css" media="screen" />
	   <link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
       <script type="text/javascript" src="scriptJS/jquery.js"></script>
       <script type="text/javascript" src="scriptJS/script.js"></script>
       <script type="text/javascript" src="scriptJS/jquery.fancyzoom.js"></script>
       <script type="text/javascript" src="scriptJS/jquery.shadow.js"></script>
       <script type="text/javascript" src="scriptJS/jquery.fancyzoom.min.js"></script>
   	   <script type="text/javascript" src="scriptJS/jquery.ifixpng.js"></script>
       <script type="text/javascript" src="scriptJS/zoom.js"></script>
       <script type="text/javascript" src="scriptJS/jquery.jqtransform.js"></script>
       <script type="text/javascript" src="scriptJS/transform.js"></script>
       <script type="text/javascript" src="scriptJS/jquery.lightbox-0.5.js"></script>
	   <script src="scriptJS/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
	   <script type="text/javascript" src ="scriptJS/formulaire.js"></script>
	   <script type="text/javascript" src="scriptJS/popup.js"></script>
	   <script type="text/javascript" src="scriptJS/calendrier.js"></script>
	   <script type="text/javascript">
			var RecaptchaOptions={
				lang: 'fr',
				theme: 'clean'
			};
	   </script>
	   <script type="text/javascript" charset="utf-8">
			$(document).ready(function(){
				$("a[rel^='prettyPhoto']").prettyPhoto();
			});
	   </script>
   </head>

<body>
	<div id="header">
    	<div id="banniere">
			<?php
				if(isset($_SESSION['user'])) {
					echo "
					<form class=","jqtransform"," method=","post"," action=","index-disconnect.html",">
						<div class="," rowElem"," id=","deconnexion",">
							Bienvenue ",$_SESSION['civilite']," ", strtoupper($_SESSION['user']),"
							<input type=","submit"," value=","Deconnexion"," ","/>
						</div> <!-- fin de div deconnexion -->
					</form>";
					echo "
					<form class=","jqtransform"," method=","post"," action=","index.php?page=my_account",">
						<div class="," rowElem"," id=\"my_acount\">
						<input type=","submit"," value=\"Mon Compte\"/>
						</div> <!-- fin de div my_acount -->
					</form>";
				} else {
					echo "
					<form class=","jqtransform"," method=","post"," action=","index.php?page=login",">
						<div class=","rowElem"," id=","inscription",">		
							<label for=","login","> Login : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
							<label for=","mail","> Identifiant : </label><input name=","mail"," size=","7%","/>
							<label for=","password","> &nbsp;&nbsp;&nbsp; Mot de passe : </label>
							<input type=","password"," name=","password"," size=","7%","/>
							<input type=","submit"," value=","Go!"," ","/>
						</div> <!-- fin de div inscription -->
					</form>";
				}
			?>
    		<h1> Share'In </h1>
    	</div> <!-- fin de div banniere -->
    	<div id="menu">
     		<div class="menu_item"><a href="index-home.html"> Accueil </a></div>
           	<div class="menu_item"><a href="index-category.html"> Categories </a></div>
            <div class="menu_item"><a href="index-forum.html"> Forums </a></div>
			<?php 
				if(isset($_SESSION['user'])) {
					if ($_SESSION['droit'] == 1) {
						echo "<div class=\"menu_item\"><a href=\"index-user.html\"> Utilisateurs </a></div>";
					} else {
						echo "<div class=\"menu_item\"><a href=\"index-register.html\"> S'inscire </a></div>";
					}
				} else {
					echo "<div class=\"menu_item\"><a href=\"index-register.html\"> S'inscire </a></div>";
				}
			?>	
           	<div class="menu_item"><a href="index-contact.html"> Contact </a></div>
    	</div> <!-- fin de div banniere -->
		<div id="search">
			<FORM method=POST action="index.php?page=search">
				<span> Recherche : </span>
				<INPUT type=text name="text_search" size=25 maxlength=255 value="">
				<select name="type_search">
					<option> Personne </option>
					<option> Categorie </option>
					<option> Forum </option>
				</select>
				<INPUT type=submit value="OK">
			</FORM> 
		</div> <!-- fin de div search -->
    </div> <!-- fin de div header -->
    <div id="container">